public class Coder extends ITWorker implements WriteCodeInterface,ProjectInterface {
    private String name;

    public Coder(WorkTypeEnum type, int age, String name) {
        super(type, age);
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void writeCode(){
        System.out.println(getName()+"正在编写代码");
    }
    @Override
    public void projectManage(){
        System.out.println(getName()+"正在管理项目");
    }
    @Override
    public String toString() {
        return "Coder{" +
                "name='" + name + '\'' +
                '}';
    }
}
